package message;

import java.nio.ByteBuffer;

@FunctionalInterface
public interface MessageParser {
	// 将对象写入缓冲，返回是否写完
	public boolean write(ByteBuffer byteBuffer);
//	public static MessageParser parse(HandlerMapper mapper, Message obj) {
//		return mapper.getParserSupplier(obj.getClass()).parse(obj);
//	}
}
